<?php

use yii\helpers\Html;

/* @var $this yii\web\View */
/* @var $name string */
/* @var $message string */
/* @var $exception Exception */

$this->title = $name;
?>
<?php $this->beginPage(); ?>
<!DOCTYPE html>
<html>
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">

    <title>错误 <?php echo $exception->statusCode; ?></title>

    <!-- Maniac stylesheets -->
    <?php $this->registerCssFile('/css/bootstrap.min.css'); ?>
    <?php $this->registerCssFile('/css/font-awesome.min.css'); ?>
    <?php $this->registerCssFile('/css/animate/animate.min.css'); ?>
    <?php $this->registerCssFile('/css/style.css'); ?>

    <!-- HTML5 shim and Respond.js IE8 support of HTML5 elements and media queries -->
    <!--[if lt IE 9]>
    <script src="https://oss.maxcdn.com/libs/html5shiv/3.7.0/html5shiv.js"></script>
    <script src="https://oss.maxcdn.com/libs/respond.js/1.4.2/respond.min.js"></script>
    <![endif]-->
    <?php $this->head() ?>
</head>
<body class="fixed">
<?php $this->beginBody(); ?>
<!-- wrapper -->
<div class="wrapper">
    <div class="content">
        <!-- Main row -->
        <div class="row">
            <div class="col-md-12">
                <div class="box error-template animated shake">
                    <i class="fa fa-rocket"></i>

                    <h1>啊哦!</h1>

                    <h2>错误 <?php echo $exception->statusCode; ?></h2>

                    <div class="error-details alert alert-danger">
                        <?= nl2br(Html::encode($exception->getMessage())) ?>
                    </div>
                    <div class="box-footer">
                        <div class="error-actions">
                            <a href="<?php echo \yii\helpers\Url::home(); ?>" class="btn btn-primary"><span
                                    class="glyphicon glyphicon-home"></span>返回主页</a>
                            <a href="#" class="btn btn-default"><span class="glyphicon glyphicon-envelope"></span>
                                Contact Support </a>
                        </div>
                    </div>
                </div>
            </div>
        </div>
        <!-- /.row -->
    </div>
    <!-- /.wrapper -->
</div>

<!-- Javascript -->
<?php $this->registerJsFile('/js/plugins/jquery/jquery-1.10.2.min.js'); ?>
<?php $this->registerJsFile('/js/plugins/jquery-ui/jquery-ui-1.10.4.min.js'); ?>

<!-- Bootstrap -->
<?php $this->registerJsFile('/js/plugins/bootstrap/bootstrap.min.js'); ?>

<!-- Interface -->
<?php $this->registerJsFile('/js/plugins/slimScroll/jquery.slimscroll.min.js'); ?>
<?php $this->registerJsFile('/js/plugins/pace/pace.min.js'); ?>

<!-- Forms -->
<?php $this->registerJsFile('/js/custom.js'); ?>
<?php $this->endBody(); ?>
</body>
</html>
<?php $this->endPage() ?>